package com.xmtlxx.system.service;

import com.xmtlxx.common.core.domain.PageQuery;
import com.xmtlxx.common.core.page.TableDataInfo;
import com.xmtlxx.system.domain.SysOss;
import com.xmtlxx.system.domain.bo.SysOssBo;
import com.xmtlxx.system.domain.vo.SysOssVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 文件上传 服务层
 *
 * @author xmtlxx
 */
public interface ISysOssService {

    TableDataInfo<SysOssVo> queryPageList(SysOssBo sysOss, PageQuery pageQuery);

    SysOss getById(Long ossId);

    SysOss upload(MultipartFile file, Map<String,Object> params,String buss,String objid);

    SysOss upload(MultipartFile file, Map<String,Object> params);

    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<SysOss> selectSysOssList(SysOssBo sysOss);

    TableDataInfo<SysOssVo> selectSysOssByHandoverList(SysOssBo sysOss, PageQuery pageQuery);

    Boolean deleteWithValidByUrl(String url);

    void updateOss(SysOss sysOss);

    void addOss(SysOss sysOss);

}
